import style from "./index.module.css";
import Nav from "./Nav";
import {Route,HashRouter as Router} from 'react-router-dom';
import Home from "../pages/Home"
import User from "../pages/User";
import Cash from "../pages/Cash";
import Item from "../pages/Item";
// import Goods from "../pages/Goods";
// import Classify from "../pages/Classify";

export default () => (
        <div className={style.box}>
            {/* <div className={style.top}></div> */}
            <div className={style.main}>
                <Router>
                    <div className={style.nav}> 
                        <Nav/>
                    </div>                 
                    <div className={style.content}>                
                        <Route path="/"  exact={true}  component={Home}/>
                        <Route path="/user" component={User}/>
                        <Route path="/cash" component={Cash}/>
                        <Route path="/item" component={Item}/> 
                        {/* <Route path="/goods" component={Goods}/> */}
                    </div>  
                </Router>               
            </div>             
        </div>
    )
